package com.codeduck.properties.byEnvironment;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * @auther Mahone Yan
 * @date 2023/5/5
 */
@Configuration
public class DefaultProperties {

    @Autowired
    private Environment environment;

    public String getDefaultProperties(String key) {
        return this.environment.getProperty(key);
    }
}
